 
{include file="pageheader.htm"}

<script src="js/utils.js" ></script>
<script src="js/listtable.js" ></script>

<div class="list-div" id="customerDiv">
  <table >
    <tr>
      <td>{$lang.customer_name}</td>
      <td>{$customer.customer_lname }&nbsp;{$customer.customer_fname } &nbsp;[{$customer.customer_lname_kana }&nbsp;{$customer.customer_fname_kana }]</td>
    </tr>

  </table>
</div>


<!-- start orders list -->
<div class="list-div" id="listDiv">
  <table >
    <tr>
      <th>{$lang.record_id}</th>
      <th>{$lang.order_datetime}</th>
      <th>{$lang.order_totalprice}</th>
      <th>{$lang.order_status}</th>
      <th>{$lang.handler}</th>
      </tr>

 {foreach from=$orderlist item=order}

    <tr>
      <td >{$order.orders_id}</td>
      <td>{$order.date_purchased}</td>
      <td>{$order.order_total}</td>
      <td>{$order.status}</td>
      <td>
		  <a href="?page=orders&action=view&id={$order.orders_id}" title="{$lang.view}">
		  <img src="images/icon_view.gif" width="16" height="16" border="0" /></a>

		<a href="?page=orders&action=edit&id={$order.orders_id}" title="{$lang.edit}"><img src="images/icon_edit.gif" width="16" height="16" border="0" /></a>

		<a href="?page=orders&action=drop&id={$order.orders_id}"  onclick="return confirm('{$lang.drop_notice}');"><img src="images/icon_trash.gif" width="16" height="16" border="0" /></a>	

	  </td>
      </tr>

{/foreach} 
  </table>

  <br />
  
  <table width="98%" border="0" cellpadding="0" cellspacing="2" bordercolor="#FF3300" bgcolor="#FBF0C6">
    <tr>
      <td><div align="right">
	  &gt;&gt;
	  <a href="?page=customer&action=edit&id={$customer.customers_id}">{$lang.return_customer_info} </a></div></td>
    </tr>
  </table>
</div>
 
 
{include file="pagefooter.htm"}

